package com.all.security.service.impl;

import com.all.security.model.entity.SysUserRole;
import com.all.security.mapper.SysUserRoleMapper;
import com.all.security.service.ISysUserRoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 用户和角色关联表 服务实现类
 * </p>
 *
 * @author ly
 * @since 2024-03-31
 */
@Service
public class SysUserRoleServiceImpl extends ServiceImpl<SysUserRoleMapper, SysUserRole> implements ISysUserRoleService {

    @Override
    public List<String> getSysUserPerms(Long userId) {
        return baseMapper.getSysUserPerms(userId);
    }
}
